package org.asociacion.backend.persistence.dao;

import java.util.List;

import org.asociacion.backend.persistence.GenericDao;
import org.asociacion.backend.persistence.entities.TblIndexImage;

public interface IndexImageDao extends GenericDao<TblIndexImage, Integer>{
	/**
	 * Retrieve a image from a folder and its name
	 * @param folder Name of folder
	 * @param name Name of the image to search
	 * @return An object with image
	 */
	TblIndexImage getImage(String folder, String name);
	
	/**
	 * Retrieve a list of names of all images into a folder
	 * @param folder Name of folder to search
	 * @param pattern The search will by exp reg.
	 * @return A List of image
	 */
	List<TblIndexImage> getListImage(String folder, boolean pattern);

}
